//
//  UIView+XY.h
//  Ulife
//
//  Created by NJTC on 2017/9/28.
//  Copyright © 2017年 NJTC. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface UIView (XY)
@property CGFloat x;
@property CGFloat y;

@property (nonatomic) CGFloat left;
@property (nonatomic) CGFloat top;
@property (nonatomic) CGFloat right;
@property (nonatomic) CGFloat bottom;
@property (nonatomic) CGFloat width;
@property (nonatomic) CGFloat height;

@property (nonatomic) CGFloat centerX;
@property (nonatomic) CGFloat centerY;

@property (nonatomic) CGPoint origin;
@property (nonatomic) CGSize size;

+(instancetype)viewFromXib;
+(instancetype)viewFromXibIndex:(NSInteger)index;

@end
